package org.jeecg.modules.business.takestockplan.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 盘点作业
 * @Author: jeecg-boot
 * @Date:   2023-08-04
 * @Version: V1.0
 */
@ApiModel(value="wms_take_stock_plan_execute对象", description="盘点作业")
@Data
@TableName("wms_take_stock_plan_execute")
public class TakeStockPlanExecute implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    private String sysOrgCode;
	/**盘点任务id*/
	@Excel(name = "盘点任务id", width = 15)
    @ApiModelProperty(value = "盘点任务id")
    private String wmsTakeStockPlanId;
	/**盘点作业编号*/
	@Excel(name = "盘点作业编号", width = 15)
    @ApiModelProperty(value = "盘点作业编号")
    private String code;
	/**盘点日期*/
	@Excel(name = "盘点日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "盘点日期")
    private Date executeDate;
	/**单据状态*/
	@Excel(name = "单据状态", width = 15)
    @ApiModelProperty(value = "单据状态")
    @Dict(dicCode = "take_stock_plan_status")
    private String documentStatus;
	/**是否生成盘点差异处理单*/
	@Excel(name = "是否生成盘点差异处理单", width = 15)
    @ApiModelProperty(value = "是否生成盘点差异处理单")
    @Dict(dicCode = "yn")
    private String generateFlag;
//	/**盘盈单id*/
//	@Excel(name = "盘盈单id", width = 15)
//    @ApiModelProperty(value = "盘盈单id")
//    @TableField(updateStrategy = FieldStrategy.IGNORED)
//    private String inventoryGainId;
//	/**盘亏单id*/
//	@Excel(name = "盘亏单id", width = 15)
//    @ApiModelProperty(value = "盘亏单id")
//    @TableField(updateStrategy = FieldStrategy.IGNORED)
//    private String inventoryLossId;
	/**租户id*/
	@Excel(name = "租户id", width = 15)
    @ApiModelProperty(value = "租户id")
    private Integer tenantId;
	/**逻辑删除*/
	@Excel(name = "逻辑删除", width = 15)
    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer delFlag;
    /**单据类型*/
    @Excel(name = "单据类型", width = 15, dicCode = "take_job")
    @Dict(dicCode = "take_job")
    @ApiModelProperty(value = "单据类型")
    private String documentType;
    /**是否是复盘, 0 否, 1 是*/
    @ApiModelProperty(value = "是否是复盘, 0 否, 1 是")
    private String replayFlag;

    /**组织*/
    @ApiModelProperty(value = "组织")
    private String organization;
    /**盘点差异处理单id*/
    @ApiModelProperty(value = "盘点差异处理单id")
    private String differenceId;
}
